SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''list'%5d%5bi%5d%5b'date'%5d+' 00:00:00' AND pt.dt<=''+list%5b'list'%5d%5bi%5...' at line 3 at /var/www/baltphoto/data/www/baltphoto.ru/adm/lib/php/cms_sql/class_photo.php line 55
Array ( [code] => 1064 [message] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''list'%5d%5bi%5d%5b'date'%5d+' 00:00:00' AND pt.dt<=''+list%5b'list'%5d%5bi%5...' at line 3 [query] => SELECT count(*) FROM cms_photo_tree pt WHERE TRUE AND (pt.dt>=''+list%5b'list'%5d%5bi%5d%5b'date'%5d+' 00:00:00' AND pt.dt<=''+list%5b'list'%5d%5bi%5d%5b'date'%5d+' 23:59:59') [context] => /var/www/baltphoto/data/www/baltphoto.ru/adm/lib/php/cms_sql/class_photo.php line 55 )